import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        System.out.println("用户输入购物价格");

        Scanner sc = new Scanner(System.in);
        Double price = sc.nextDouble();
        System.out.println("亲，包邮吗");
        Scanner sc1 = new Scanner(System.in);
        String isdistanceprice = sc1.nextLine();
        if (isdistanceprice.equals("Yes")){
            System.out.println(price);
        }else {
//            price += 20;
            System.out.println("最终价格为:"+(price+20));
        }


    }
}
